Skip to content

Simplify TRUSTED_PROXIES and TRUSTED_HOSTS config #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2018

Conversation

acasademont
Copy link
Contributor

I believe using getenv provides a simpler way to extract the variable, avoiding the isset ternary. getenv is case insensitive

I believe using `getenv` provides a simpler way to extract the variable, avoiding the `isset` ternary. `getenv` is case insensitive
@andig
Copy link
Contributor

andig commented Jul 26, 2018

I don't know- where are those env variables set?

@acasademont
Copy link
Contributor Author

getenv() and $_SERVER behave the same way, the only difference is that getenv() is case-insensitive. In the Symfony Bootstrap we already used getenv() previously hence the PR to keep it coherent.

@acasademont
Copy link
Contributor Author

To be clear, this is not a bug fix, is just a simpler version of the same lines using getenv()

@andig andig merged commit dac6439 into php-pm:master Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants